<?php
include("../function.php");

if($_GET['request']==1){
	$re=mysql_query("select * from `user` where user_email='$_GET[user_name]'")or die(mysql_error());
	$count=mysql_num_rows($re);
	$row=mysql_fetch_array($re);
	if($count==1){
		$pwd=md5($_GET['user_pwd']);
		if($row['user_pwd']==$pwd){
			echo "yes";
		}else{
			echo "no";
			}
		}else{
			echo "no user";
			}
}
?>